import request from '@/utils/request';

export async function reqTyUserRoleList(data: any, options?: any): Promise<any> {
	return request('/api/sys/userRole/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTyUserRole(data: any, options?: any): Promise<any> {
	return request('/api/sys/userRole/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTyUserRole(data: any, options?: any): Promise<any> {
	return request('/api/sys/userRole/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTyUserRole(data: any, options?: any): Promise<any> {
	return request('/api/sys/userRole/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


